<?php
class infoController extends appController
{

   //中奖用户页面
   public function users()
   {
       $page = yf_empty($_REQUEST['page'], 1, true);
       
       $prize_name = $_REQUEST['user_name'];
       
       $list = Model('car')->get_users($prize_name,$page);
       
       foreach($list['data'] as $k => $v)
       {
           $list['data'][$k]['addtime'] = date('Y-m-d H:i:s',$v['addtime']);
       }
       
       $this->assign('result',$list['data']);
       $this->assign('count',$list['count']);
       $this->assign('user_list_page',$list['pagelink']);
       $this->display('users.html');
   }

   //导出活动列表
   function execlUser()
   {
       $title = array("序号","openid","微信昵称","姓名","手机号码","提交时间");
   
       $where = " where  1=1 ";
   
   
   
       $result =Model('car')->listAll();
   
   
       exportData("广马报名列表",$title,$result);
   
       exit;
   }
   
   
}?>